package cn.bingo.yunsj.mail.model;

import cn.bingo.yunsj.utils.IsDirectory;
import org.springframework.util.ClassUtils;

// to do 没有文件创建文件
public class FileProperties {

//    private static String imagePath =ClassUtils.getDefaultClassLoader().getResource("static/image/").getPath();
    private static String imagePath="/java_data/yunshnagju/static/image/";

    // 前端只需要一个name，拼接这个即可
//    private static String docPath = ClassUtils.getDefaultClassLoader().getResource("static/doc/").getPath();
    private static String docPath = "/java_data/yunshnagju/static/doc/";

//    private static String pdfPath = ClassUtils.getDefaultClassLoader().getResource("static/doc/pdf/").getPath();
    private static String pdfPath = "/java_data/yunshnagju/static/doc/pdf";

//    private static String imageFileInfo =ClassUtils.getDefaultClassLoader().getResource("static/doc/text/").getPath()+"imageInfo.text";
    private static String imageFileInfo = "/java_data/yunshnagju/static/doc/text/imageInfo.text";

    private static String html;

    public static String getImagePath() {
        return imagePath;
    }

    public static void setImagePath(String imagePath) {
        FileProperties.imagePath = imagePath;
    }

    public static String getDocPath() {
        return docPath;
    }

    public static void setDocPath(String docPath) {
        FileProperties.docPath = docPath;
    }

    public static String getPdfPath() {
        return pdfPath;
    }

    public static void setPdfPath(String pdfPath) {
        FileProperties.pdfPath = pdfPath;
    }

    public static String getImageFileInfo() {
        return imageFileInfo;
    }

    public static void setImageFileInfo(String imageFileInfo) {
        FileProperties.imageFileInfo = imageFileInfo;
    }

    public static String getHtml() {
        return html;
    }

    public static void setHtml(String html) {
        FileProperties.html = html;
    }
}
